import DvaIndex from "DvaCommon";

const config = {
    name: 'MeetingAsr2Servcie',
    serviceName: 'ApiService',
    actionList: [
        get('getMeetingAsr', 'MeetingAsr/GetMeetingAsr', 'getMeetingAsr'),
        get('getNoStoppedMeetingAsr', 'MeetingAsr/GetNoStoppedMeetingAsr', 'getNoStoppedMeetingAsr'),
        post('insertMeetingAsr', 'MeetingAsr', 'insertMeetingAsr'),
        put('updateMeetingAsr', 'MeetingAsr', 'updateMeetingAsr'),
    ]
};

function get(actionName, url, stateName) {
    return { actionName, url, method: "GET", stateName };
}

function post(actionName, url, stateName) {
    return { actionName, url, method: "POST", stateName };
}

function put(actionName, url, stateName) {
    return { actionName, url, method: "PUT", stateName };
}

export default DvaIndex(config);